RGBA

data class RGBA(r: Int, g: Int, b: Int, a: Double?)

A structure holding an RGBA color.

Constructors

RGBA
Link copied to clipboard
fun RGBA(r: Int, g: Int, b: Int, a: Double? = null)

Properties

a
Link copied to clipboard
val a: Double? = null
The alpha component, in the 0-1 range (default: 1).
b
Link copied to clipboard
val b: Int
The blue component, in the 0-255 range.
g
Link copied to clipboard
val g: Int
The green component, in the 0-255 range.
r
Link copied to clipboard
val r: Int
The red component, in the 0-255 range.

Sources

jvm source
Link copied to clipboard